package container

import (
	"fmt"
	// "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cvm/v20170312"
	// "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common"
	// "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/profile"
)

func NewTencent(region, secretID, secretKey string) *Tencent {
	// credential := common.NewCredential(secretID, secretKey)
	// cpf := profile.NewClientProfile()
	// client, _ := cvm.NewClient(credential, region, cpf)
	return &Tencent{
		// client: client,
	}
}

type Tencent struct {
	// client *cvm.Client
}

func (t *Tencent) StartInstance(instanceID string) error {
	fmt.Println("Starting instance on Tencent ECS:", instanceID)
	// req := cvm.NewStartInstancesRequest()
	// req.InstanceIds = []*string{&instanceID}
	// _, err := t.client.StartInstances(req)
	return nil
}
func (t *Tencent) StopInstance(instanceID string) error {
	fmt.Println("Stopping instance on Tencent ECS:", instanceID)
	// req := cvm.NewStopInstancesRequest()
	// req.InstanceIds = []*string{&instanceID}
	// _, err := t.client.StopInstances(req)
	return nil
}
func (t *Tencent) RestartInstance(instanceID string) error {
	fmt.Println("Restarting instance on Tencent ECS:", instanceID)
	// req := cvm.NewRebootInstancesRequest()
	// req.InstanceIds = []*string{&instanceID}
	// _, err := t.client.RebootInstances(req)
	return nil
}
